<?php
class Logger { 

	private $_classname;
	private $_msgkey = '123456';
	private $_delimiter = ';';

	public function __construct($classname)
    {
        $this->_classname = $classname;
    }
	
	public function log($line)
	{
		$this->logLine_MQ($line);
	}

    private function logLine_MQ($line)
    {
		$msgQID = msg_get_queue($this->_msgkey);
		$time = microtime(true);
		$message=$time.$this->_delimiter.'"'.$line.'"';
		msg_send($msgQID, 1, $message, false, true, $msg_err);
	}
}
?>
